// map::crbegin/crend
#include <bits/stdc++.h>
using namespace std;
int main ()
{
  map<char,int> mymap;
  mymap['b'] = 100;
  mymap['a'] = 200;
  mymap['c'] = 300;
  cout << "mymap backwards:"<<"\n";
  for (auto rit = mymap.crbegin(); rit != mymap.crend(); ++rit)
    cout << "[" << rit->first << ':' << rit->second << ']'<<"\n";
  return 0;
}

